package org.jeecg.modules.wangyue.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.wangyue.entity.EvaluateJs;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.wangyue.model.req.ReqEvaluateModel;
import org.jeecg.modules.wangyue.model.res.ResEvaluateJsModel;
import org.springframework.stereotype.Component;

/**
 * @Description: 技师评价表
 * @Author: jeecg-boot
 * @Date:   2023-06-30
 * @Version: V1.0
 */
@Component
public interface EvaluateJsMapper extends BaseMapper<EvaluateJs> {

    IPage<ResEvaluateJsModel> queryMyEvaluateJsPage(@Param("page") Page page, @Param("userId") String userId, @Param("userType") String userType);

    Map<String, String> queryEvaluateJsAvgScore(@Param("evaluatedUserId") String evaluatedUserId,
                                               @Param("evaluatedUserType") String evaluatedUserType);

    IPage<ResEvaluateJsModel> queryEvaluateJsPage(@Param("page") Page page, @Param("jsUserId") String jsUserId, @Param("jsUserType") String jsUserType);
}
